package cn.minsh.lims.eoms.modules.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import cn.minsh.lims.eoms.common.utils.PageUtils;
import cn.minsh.lims.eoms.modules.app.entity.PlanAgentEntity;

import java.util.List;
import java.util.Map;

/**
 * 巡检计划经办人
 *
 * @author lht
 * @email sunlightcs@gmail.com
 * @date 2021-06-24 16:04:19
 */
public interface PlanAgentService extends IService<PlanAgentEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void add(PlanAgentEntity planAgent,Long userId) ;
    void updateBy(PlanAgentEntity planAgent,Long userId) ;

    void deleteByTypeAndPlanId(Integer code, Long planId);

    List<PlanAgentEntity> listByTypeAndPlanId(Integer code, Long id);

    List<PlanAgentEntity> listByType(Integer code);

    List<PlanAgentEntity> listByTypeAndAgentId(Integer code, Long userId);
}

